package com.project.server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.server.entity.HealthRecord;
import com.project.server.entity.PatientInfo;
import com.project.server.entity.SysUser;
import com.project.server.vo.PatientVO;
import org.springframework.transaction.annotation.Transactional;

public interface DoctorPatientService {
    Page<SysUser> getPatients(Long doctorId, Integer current, Integer size, String name);
    PatientVO getPatientDetail(Long userId);
    Page<HealthRecord> getPatientRecords(Long userId, Integer current, Integer size);

    @Transactional
    void update(Long doctorId, Long userId, PatientInfo patientInfo);

    @Transactional
    void unbindPatient(Long doctorId, Long userId);
}
